package com.ssm.service.impl;


import com.ssm.dao.StuMistakeDao;
import com.ssm.pojo.StuMistake;
import com.ssm.service.StuMistakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuMistakeServiceImpl implements StuMistakeService {

    @Autowired
    StuMistakeDao stuMistakeDao;

    public List<StuMistake> listAll(String cdorm) {
        return stuMistakeDao.listAll(cdorm);
    }

    public List<StuMistake> find_name_cdormc(String cdorm) {
        return stuMistakeDao.find_name_cdormc(cdorm);
    }

    public List<StuMistake> find_name_cdormd(String cdorm, String sname) {
        return stuMistakeDao.find_name_cdormd(cdorm,sname);
    }

    public List<StuMistake> findNotStatu() {
        return stuMistakeDao.findNotStatu();
    }

    public int addStuMistake(StuMistake stuMistake) {
        return stuMistakeDao.addStuMistake(stuMistake);
    }

    public StuMistake query(String number) {
        return stuMistakeDao.query(number);
    }

    public int stuMistakeUpdate(StuMistake stu) {
        return stuMistakeDao.stuMistakeUpdate(stu);
    }

    public int updateByNumber(StuMistake stuMistake) {
        return stuMistakeDao.updateByNumber(stuMistake);
    }

    public int deleteByNumber(String number) {
        return stuMistakeDao.deleteByNumber(number);
    }

    public int deleteStuList(List<String> list) {
        return stuMistakeDao.deleteStuList(list);
    }

    public int updateStatu(String number,int statu) {
        return stuMistakeDao.updateStatu(number,statu);
    }
}
